#if !defined(CBUILDING_H)
#define CBUILDING_H
#pragma once

#include "libraries.h"

class CBuilding
{
public:
	CBuilding(int X, int Y, int Type)
	{
		FindCells(X, Y);
		FillCells();
		UnitType = Type;
		BuildCounter = 0;
		Working = 1;
	}
	~CBuilding(){}

	void FindCells(int X, int Y);
	void FillCells();
	void Move();

	struct BCell
	{
		int X;
		int Y;
	}CellList[200];
	int CellsAmount;
	int BuildCounter;
	int UnitType;
	int Working;
};

#endif